import Vue from "vue";
import kebabCase from "lodash/kebabCase";
const req = require.context("@/components/common/", true, /[\s\S]+\/$/);
req.keys().forEach(e => {
  const [name] = e.match(/([A-Z])\w+/g);
  Vue.component(kebabCase(name), resolve =>
    require([`@/components/common/${name}/index.vue`], resolve)
  );
});
